package com.dr.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dr.mapper.InvoiceMapper;
import com.dr.pojo.Invoice;
import com.dr.pojo.Register;
import com.dr.service.InvoiceService;

@Service
@Transactional
public class InvoiceServiceImpl implements InvoiceService{
	@Autowired
	private InvoiceMapper mapper;
	
	@Override
	public Invoice nextInvoice() {
		return mapper.nextInvoice();
	}

	@Override
	public List <Invoice> findInvoiceList() {
		return mapper.findInvoiceList();
	}

	@Override
	public int updateInvoice(Register register) {
		return mapper.updateInvoice(register);
	}
	
	
}
